﻿using System;
using System.IO;
using System.Windows.Forms;
using NPOI.HSSF.UserModel;
using XiuXiuTools;
using System.Linq;

namespace XiuXiuTools
{
    public partial class BaseForm : Form
    {
        public BaseForm()
        {
            InitializeComponent();
        }

        public KaoHeAPI.KaoHeAPI serviceClient = new KaoHeAPI.KaoHeAPI();
        

        public void SetControlsEnable(Control form, bool enable)
        {
            foreach (Control item in form.Controls)
            {
                item.Enabled = enable;
            }
            if (enable)
            {
                form.Cursor = System.Windows.Forms.Cursors.Default;

            }
            else
            {
                this.Cursor = System.Windows.Forms.Cursors.WaitCursor;
            }
           
        }




    }
}